package com.hexacta.hrs.report;

import java.util.ArrayList;
import java.util.List;


public class EmployeeReportSummary {
	
	private String column;
	
	private List<Tuple> tuple = new ArrayList<Tuple>();
	
	public EmployeeReportSummary(String column, List<Tuple> tuple) {
		this.column = column;
		this.tuple = tuple;
	}

	public EmployeeReportSummary(String column, String value1, String value2) {
		this.column = column;
		tuple.add(new Tuple(value1, value2));
	}
	
	public void addTuple( String value1, String value2){
		tuple.add(new Tuple(value1, value2));
	}
	
	public String getColumn() {
		return column;
	}

	public void setColumn(String column) {
		this.column = column;
	}

	public List<Tuple> getTuple() {
		return tuple;
	}

	public void setTuple(List<Tuple> tuple) {
		this.tuple = tuple;
	}
	
	public String getTotal() {
		Integer total = 0;
		for (Tuple tuple : getTuple()) {
			total += Integer.valueOf(tuple.getTotal());
		}
		return total.toString();
	}
}
